/*
 * @Description: 
 * @Date: 2024-05-29 17:25:53
 * @LastEditTime: 2024-06-03 17:47:47
 */
import request from '@/config/axios'

export interface CaseQueryRecordVO {
                    id: number
                    partyName: string
                    partyCard: string
                    applicantType: string
                    applicant: string
                    applicantPhone: string
                    status: boolean
                    acceptUserName: string
                    acceptTime: Date
                    acceptUserId: number
                    acceptContent: string
                    auditingContent: string
                    auditingTime: Date
}

// 查询案件查询记录列表
export const getCaseQueryRecordPage = async (params) => {
  return await request.get({ url: '/pro/case-query-record/page', params })
}

// 查询案件查询记录详情
export const getCaseQueryRecord = async (id: number) => {
  return await request.get({ url: '/pro/case-query-record/get?id=' + id })
}

// 新增案件查询记录
export const createCaseQueryRecord = async (data: CaseQueryRecordVO) => {
  return await request.post({ url: '/pro/case-query-record/create', data })
}

// 修改案件查询记录
export const updateCaseQueryRecord = async (data) => {
  return await request.put({ url: '/pro/case-query-record/update', data })
}

// 删除案件查询记录
export const deleteCaseQueryRecord = async (id: number) => {
  return await request.delete({ url: '/pro/case-query-record/delete?id=' + id })
}

//查询案件资源
export const getCaseQueryResource=async (params) => {
  return await request.get({ url: '/infra/file/page' ,params })
}

// 导出案件查询记录 Excel
export const exportCaseQueryRecordApi = async (params) => {
  return await request.download({ url: '/pro/case-query-record/export-excel', params })
}

///app-api/pro/transfer-records/create

//转派接口

export const createTransferRecord = async (data) => {
  return await request.post({ url: '/pro/transfer-records/create', data })
}
export const getTransferResource=async (params) => {
  return await request.get({ url: '/pro/transfer-records/page' ,params })
}

///pro/transfer-records/page
export const getSystemList=async (params) => {
  return await request.get({ url: '/system/user/user_role' ,params })
}